hgtui.pot: ../bin/hgtui ../hgtui/*.py
	xgettext -L python ../bin/hgtui ../hgtui/*.py -o hgtui.pot
build:
	for f in *.po; do \
		l=`echo $$f | sed -e s/\.po//`; \
		mkdir -p ../locale/$$l/LC_MESSAGES/ ; \
		msgfmt $$f -o ../locale/$$l/LC_MESSAGES/hgtui.mo ; \
	done
install:
	mkdir -p $(DESTDIR)/usr/share
	cp -r ../locale/ $(DESTDIR)/usr/share
clean:
	rm -rf ../locale/

